package com.hns.can.common.domain;

/**
 * $.ajax后需要接受的JSON
 * @author:Fisher
 * @email:zhuangcaijin@126.com
 * @version Revision 2.0.0
 */
public class ReturnResult {

    private boolean success = true;// 是否成功

    private String msgType = "1";// 类别

    private String msg = "";// 提示信息

    private Object obj = null;// 其他信息

    // private Map<String, Object> attributes;// 其他参数
    public ReturnResult() {
    }

    public ReturnResult(Object obj) {
        this.obj = obj;
    }

    public ReturnResult(String msg, Object obj) {
        this.msg = msg;
        this.obj = obj;
    }

    public ReturnResult(String msg, String msgType, boolean success) {
        this.msg = msg;
        this.msgType = msgType;
        this.success = success;
    }

    public ReturnResult(Object obj, String msgType, boolean success) {
        this.obj = obj;
        this.msgType = msgType;
        this.success = success;
    }

    public String getMsgType() {
        return msgType;
    }

    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getObj() {
        return obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

}
